package com.ludi.dao.impl;

import com.ludi.dao.UserDao;
import com.ludi.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

@Repository
public class UserDaoImpl implements UserDao {

    @Override
    public User selectByName(String userName, String passWord) {
        if(userName!=null){
            return new User(userName,passWord);
        }
        return null;
    }
}
